package org.tobaccomain.service;

import org.springframework.web.multipart.MultipartFile;
import org.tobaccomain.pojo.dto.PageExtra;
import org.tobaccomain.pojo.dto.TobaccoInfo;
import org.tobaccomain.pojo.entity.TobaccoBasic;
import org.tobaccomain.pojo.vo.PageResult;

import java.io.IOException;

public interface ExtraService {

    //备料信息添加
    void addExtra(TobaccoBasic tobaccoBasic);

    //备料信息删除
    void delExtra(TobaccoBasic tobaccoBasic);

    //备料信息修改
    void modifyExtra(TobaccoBasic tobaccoBasic);

    //备注信息修改
    void modifyExtraInfo(TobaccoInfo extraInfo);

    //备料信息的分页查询
    PageResult getExtraList(PageExtra pageExtra);

    //根据id查询备料信息
    TobaccoBasic getExtraById(Integer id);

    //备料信息导入
    void uploadExtra(MultipartFile file) throws IOException;
}
